{{ define "admin/role/edit.html" }}
{{ template "admin/common/page_header.html" .}}

<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <header class="card-header">
                增加角色
            </header>
            <div class="card-body">
                <form action="/admin/role/doEdit" method="post">
                    <input type="hidden" name="id" value="{{.role.Id}}">
                    <div class="form-group col-md-12">
                        <label for="title">角色名称</label>
                        <input type="text" class="form-control" id="title" name="title" autocomplete="off" value="{{.role.Title}}" placeholder="角色名称">
                    </div>

                    <div class="form-group col-md-12">
                        <label for="title">角色描述</label>
                        <textarea name="description" class="form-control" id=""  rows="8"  placeholder="角色描述">{{.role.Description}}</textarea>
                    </div>
                    <div class="form-group col-md-12">
                        <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

{{end}}